/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.plant.service;
import java.util.List;
import java.util.Map;

import com.plant.entity.UgcCollect;
import com.plant.entity.UgcNewthings;
import com.plant.entity.UgcUser;

/**
 *UserService的接口实现
 * 
 */
public interface UserServic {

	public List<Object> listUserInfo();                                //--1.查看用户的基本信息方法

	public List<Object> getByuid(UgcUser uf);                           //--2.通过用户id查找用户个人资料接口

	public boolean updateU(UgcUser uf);                                    //--3.修改用户的资料接口

	public List<Object[]> friendreq(UgcUser uf);						//--4查看好友请求列表

	public Long myfriendcount(UgcUser uf);								 //---5.查看我的朋友个数						

	public List<Object> IsNotfriend(Integer uid,Integer rid);            //---6.判断是否是好友

	public List<Object> isfriend(Integer uid,Integer rid);               //---7.判断是否是好友

	public Object OneUser(UgcUser uf);                                   //---8.查看一个用户 返回一个对象

	public List<Object[]> MyMoment(UgcUser uf,String time,Integer page); //---9.查看显示我的个人动态

	public List<Map<String, Object>> LanMuMyMoment(UgcUser uf,String time,Integer page);//我的栏目显示个人动态

	public List<Object> NewThingsImages(Object obj);                     //---10.查看显示新鲜事的多张图片

	public List<Object> FaqImage(Object obj);							 //---11.求助的图片

	public List<Object> TopicJoinImages(UgcUser u,Object obj);			 //---12.用户参与讨论发布的图片

	public List<Object[]> FaqInf(UgcUser uf,Object obj);                 //---13.求助的详情

	public List<Object[]> TopicJoinInf(UgcUser uf,Object obj);           //---14话题参与详情

	public Long FaqCountBid(Object obj);                                 //---15统计回答个数通过求助ID

	public Long TopicJoinCountBid(Object obj);             				  //---统计话题参与个数

	public List<Object[]> Moment(Object obj,String time,Integer page);    //---首页朋友圈

	public List<Map<String, Object>> MomentI(Object obj,String time,Integer page); //---首页朋友圈

	public Object UserPartInf(Object obj);                               //---查询用户三个信息 ID NickName Photo

	public List<Object[]> UserThreeInf(Object obj);                       //返回三个用户信息

	public boolean AddUserCollect(UgcCollect uc);                          //新建用户收藏 

	public List<Map<String, Object>> UserNewsthingsByLike(Object id_key); //显示新鲜事被点赞的用户

	public List<Map<String, Object>> UserNewthings(UgcUser u,String time,Integer page);//查找用户新鲜事

	public List<Map<String, Object>> OneNewthingsInf(UgcNewthings un);//一条新鲜事内容
	
	public List<Object> MyFriendIds(UgcUser u); //获取朋友的IDS
	
	public List<Map<String, Object>> ListFriendApply(Integer page,UgcUser u);//获取好友申请
	
	public List<Map<String, Object>> ListMyQuestionAndAnswer(UgcUser u,Integer page,String time);//查询我的求助和回答
	
	public List<Object> FindByAnswerId(Object obj);//通过回答id查询求助
	
	public List<Object> FindfaqById(Object obj);//通过求助ID查询求助信息
} 
